<?php
/**
 * Author: liushanshan
 * Date: 2019/2/15 0015
 */
namespace app\admin\validate;
class MemberVal{
    const errMsg=[
        'username.require'  => 10001,#用户名不能为空
        'password.require'  => 10002,#密码不能为空
        'password.min'      => 10003,#密码不能少于6位
    ];
    static function login(){
        $rule =[
            'username'  => 'require',
            'password'  => 'require|min:6'
        ];
        $msg = self::errMsg;
        return ['rule'=>$rule,'msg'=>$msg];
    }
}